package org.javaboy.lettuce_bloom_demo.cmd;

import io.lettuce.core.dynamic.Commands;
import io.lettuce.core.dynamic.annotation.Command;

import java.util.List;

public interface RedisBloomFilterCmd extends Commands {
    @Command("bf.add ?0 ?1")
    List<Object> bfAdd(String filter, String item);

    @Command("bf.exists ?0 ?1")
    List<Object> bfExists(String filter, String item);

    @Command("CL.THROTTLE ?0 ?1 ?2 ?3 ?4")
    List<Object> throttle(String key, Long init, Long count, Long period, Long quota);
}
